export function removeToken() {
    localStorage.removeItem("token")
}

export let TokenUtil={
    checkLogin(_this){
        let userId = _this.$store.state.userOption.user.userId;

        return userId && userId>0
    },
    getToken() {
        let item = localStorage.getItem("token");
        return item ? item : ""
    },
    setToken(token) {
        localStorage.setItem("token", token)
    }


}
export function getToken() {
    let item = localStorage.getItem("token");
    return item ? item : ""
}
export function setToken(token) {
    localStorage.setItem("token", token)
}